//
//  USLoveCompassUserHeader.m
//  us
//
//  Created by karry on 2025/4/9.
//

#import "USLoveCompassUserHeader.h"

@interface USLoveCompassUserHeader()

@end

@implementation USLoveCompassUserHeader


- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        [self setupView];
    }
    return self;
}

- (void)setupView{
    
    _characterView = [[CharacterView alloc]initWithFrame:CGRectMake(0, 0, 44, 44) character:USUser.user.relCharacter];
//    _characterView.layer.cornerRadius = self.frame.size.width * 0.5;
//    _characterView.autoresizingMask = UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight;
    [self addSubview:_characterView];
    [_characterView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.bottom.mas_equalTo(0);
        make.centerX.mas_equalTo(0);
        make.width.equalTo(_characterView.mas_height);
    }];
    
//    self.imageView.layer.borderWidth = 1.2f;
}

- (void)layoutSubviews{
    [super layoutSubviews];
    
//    self.imageView.layer.cornerRadius = self.bounds.size.width * 0.5;
    
}


@end
